home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / c / library / dos / communic / pcmail / daemon / makefile < prev    next >
Encoding:
Makefile  |  1994-06-05  |  4.8 KB  |  167 lines

  1. # @(#) Makefile 1.7 12/29/89 18:08:05
  2.  
  3.  
  4.  
  5. ###############################
  6.  
  7. # Start of configurable options. You will also have to do a `make depend'.
  8.  
  9.  
  10.  
  11. # Compiler options.
  12.  
  13. # -DSYSV is needed for system 5 release 2
  14.  
  15. # -DRFC822 if you want the daemon to produce To: and From: header lines
  16.  
  17. # -DSYSEXITS if your system has <sysexits.h>
  18.  
  19. # -DSYSLOG if your system has a BSD 4.3-like syslog facility
  20.  
  21. # -DSYSLOGFILE=\"/usr/spool/mqueue/syslog\" if you don't have BSD4.3-like syslog
  22.  
  23. #    You will also have to create that file, with mode 666.
  24.  
  25. #
  26.  
  27. #BSD4.X: DEFS = -DRFC822 -DSYSEXITS -DSYSLOG
  28.  
  29. #SYSVR2: DEFS = -DRFC822 -DSYSV -DSYSLOGFILE=\"/usr/spool/mqueue/syslog\" 
  30.  
  31.  
  32.  
  33. DEFS    = -DRFC822 -DSYSEXITS -DSYSLOG
  34.  
  35.  
  36.  
  37. # Location of pc-mail spool area
  38.  
  39.  
  40.  
  41. MAILDIR    = /var/spool/pc-mail
  42.  
  43.  
  44.  
  45. # How often the daeman will scan the pc-mail spool area for unsent mail.
  46.  
  47. # This time interval can also be changed via the command line.
  48.  
  49.  
  50.  
  51. DELAY    = 30
  52.  
  53.  
  54.  
  55. # Some system-5 implementations have a separate library with BSD-compatible
  56.  
  57. # directory access routines.
  58.  
  59. #
  60.  
  61. #LIBS    = -lndir
  62.  
  63.  
  64.  
  65. LIBS    = 
  66.  
  67.  
  68.  
  69. # Location of the pc-mail en pc-maild binaries
  70.  
  71.  
  72.  
  73. EXEDIR    = /usr/local/lib
  74.  
  75.  
  76.  
  77. # If you want to, where to install the manual pages
  78.  
  79.  
  80.  
  81. MANDIR    = /usr/local/man/man8
  82.  
  83.  
  84.  
  85. # End of configurable options
  86.  
  87. #############################
  88.  
  89.  
  90.  
  91. SHELL    = /bin/sh
  92.  
  93. CFLAGS    = $(DEFS) -DDELAY=$(DELAY) -DMAILDIR=\"$(MAILDIR)\"
  94.  
  95. ARCHIVE    = sarch
  96.  
  97. SOURCES    = README pc-mail.c pc-maild.c Makefile sysexits.h syslog.h \
  98.  
  99.     syslog.c util.c util.h mtime.c mtime.h dosunix.c dosunix.h \
  100.  
  101.     percentm.h percentm.c  ms_parse.c ms_parse.h DAEMON.ins
  102.  
  103.  
  104.  
  105. PCMOBJ    = pc-mail.o syslog.o percentm.o dosunix.o ms_parse.o
  106.  
  107. PCMSRC    = pc-mail.c syslog.c percentm.c dosunix.c ms_parse.c
  108.  
  109.  
  110.  
  111. PCMDOBJ    = pc-maild.o syslog.o percentm.o dosunix.o util.o mtime.o
  112.  
  113. PCMDSRC    = pc-maild.c syslog.c percentm.c dosunix.c util.c mtime.c
  114.  
  115.  
  116.  
  117. all:    pc-mail pc-maild
  118.  
  119.  
  120.  
  121. install: all
  122.  
  123.     -mkdir $(MAILDIR)
  124.  
  125.     chmod 755 $(MAILDIR)
  126.  
  127.     cp pc-mail pc-maild $(EXEDIR)
  128.  
  129.     chown root $(EXEDIR)/pc-mail
  130.  
  131.     chmod 4755 $(EXEDIR)/pc-mail
  132.  
  133.  
  134.  
  135. installman: 
  136.  
  137.     cp pc-mail.8 pc-maild.8 $(MANDIR)
  138.  
  139.  
  140.  
  141. pc-mail: $(PCMOBJ)
  142.  
  143.     $(CC) $(CFLAGS) -o $@ $(PCMOBJ) $(LIBS)
  144.  
  145.  
  146.  
  147. pc-maild: $(PCMDOBJ)
  148.  
  149.     $(CC) $(CFLAGS) -o $@ $(PCMDOBJ) $(LIBS)
  150.  
  151.  
  152.  
  153. lint:    lint1 lint2
  154.  
  155.  
  156.  
  157. lint1:    $(PCMSRC)
  158.  
  159.     lint $(CFLAGS) $(PCMSRC)
  160.  
  161.  
  162.  
  163. lint2:    $(PCMDSRC)
  164.  
  165.     lint $(CFLAGS) $(PCMDSRC)
  166.  
  167.  
  168.  
  169. shar:    $(SOURCES) pc-mail.8 pc-maild.8
  170.  
  171.     @shar $(SOURCES) pc-mail.8 pc-maild.8
  172.  
  173.  
  174.  
  175. clean:
  176.  
  177.     rm -f *.o core nohup.out
  178.  
  179.  
  180.  
  181. clobber: clean
  182.  
  183.     rm -f pc-maild pc-mail
  184.  
  185.  
  186.  
  187. archive: $(SOURCES)
  188.  
  189.     $(ARCHIVE) $?;
  190.  
  191.     touch archive
  192.  
  193.  
  194.  
  195. depend:    
  196.  
  197.     (sed '1,/^# do not edit/!d' Makefile; \
  198.  
  199.     for i in [a-z][a-z]*.c; do \
  200.  
  201.         $(CC) -E $(CFLAGS) $$i | sed -n '/^# *1 *"\([^"]*\)".*/{;s//'`echo $$i|sed 's/c$$/o/'`':    \1/;p;}'; \
  202.  
  203.     done)>$$$$ && mv $$$$ Makefile
  204.  
  205.  
  206.  
  207. # do not edit below this line - it was create with `make depend'
  208.  
  209. dosunix.o:    dosunix.c
  210.  
  211. dosunix.o:    /usr/include/stdio.h
  212.  
  213. dosunix.o:    ./dosunix.h
  214.  
  215. ms_parse.o:    ms_parse.c
  216.  
  217. ms_parse.o:    /usr/include/stdio.h
  218.  
  219. ms_parse.o:    /usr/include/ctype.h
  220.  
  221. ms_parse.o:    ./dosunix.h
  222.  
  223. ms_parse.o:    ./ms_parse.h
  224.  
  225. mtime.o:    mtime.c
  226.  
  227. mtime.o:    /usr/include/syslog.h
  228.  
  229. mtime.o:    ./mtime.h
  230.  
  231. pc-mail.o:    pc-mail.c
  232.  
  233. pc-mail.o:    /usr/include/stdio.h
  234.  
  235. pc-mail.o:    /usr/include/sys/types.h
  236.  
  237. pc-mail.o:    /usr/include/sys/sysmacros.h
  238.  
  239. pc-mail.o:    /usr/include/sys/stat.h
  240.  
  241. pc-mail.o:    /usr/include/pwd.h
  242.  
  243. pc-mail.o:    /usr/include/varargs.h
  244.  
  245. pc-mail.o:    /usr/include/syslog.h
  246.  
  247. pc-mail.o:    /usr/include/sys/dir.h
  248.  
  249. pc-mail.o:    /usr/include/sysexits.h
  250.  
  251. pc-mail.o:    ./dosunix.h
  252.  
  253. pc-mail.o:    ./percentm.h
  254.  
  255. pc-mail.o:    ./ms_parse.h
  256.  
  257. pc-maild.o:    pc-maild.c
  258.  
  259. pc-maild.o:    /usr/include/stdio.h
  260.  
  261. pc-maild.o:    /usr/include/pwd.h
  262.  
  263. pc-maild.o:    /usr/include/time.h
  264.  
  265. pc-maild.o:    /usr/include/signal.h
  266.  
  267. pc-maild.o:    /usr/include/vm/faultcode.h
  268.  
  269. pc-maild.o:    /usr/include/sys/types.h
  270.  
  271. pc-maild.o:    /usr/include/sys/sysmacros.h
  272.  
  273. pc-maild.o:    /usr/include/sys/stat.h
  274.  
  275. pc-maild.o:    /usr/include/syslog.h
  276.  
  277. pc-maild.o:    /usr/include/sys/types.h
  278.  
  279. pc-maild.o:    /usr/include/sys/dir.h
  280.  
  281. pc-maild.o:    /usr/include/sgtty.h
  282.  
  283. pc-maild.o:    /usr/include/sys/ioctl.h
  284.  
  285. pc-maild.o:    /usr/include/sys/ttychars.h
  286.  
  287. pc-maild.o:    /usr/include/sys/ttydev.h
  288.  
  289. pc-maild.o:    /usr/include/sys/ttold.h
  290.  
  291. pc-maild.o:    /usr/include/sys/ioccom.h
  292.  
  293. pc-maild.o:    /usr/include/sys/ttycom.h
  294.  
  295. pc-maild.o:    /usr/include/sys/filio.h
  296.  
  297. pc-maild.o:    /usr/include/sys/ioccom.h
  298.  
  299. pc-maild.o:    /usr/include/sys/sockio.h
  300.  
  301. pc-maild.o:    /usr/include/sys/ioccom.h
  302.  
  303. pc-maild.o:    ./dosunix.h
  304.  
  305. pc-maild.o:    ./util.h
  306.  
  307. pc-maild.o:    ./mtime.h
  308.  
  309. percentm.o:    percentm.c
  310.  
  311. percentm.o:    /usr/include/stdio.h
  312.  
  313. percentm.o:    ./percentm.h
  314.  
  315. syslog.o:    syslog.c
  316.  
  317. util.o:    util.c
  318.  
  319. util.o:    /usr/include/stdio.h
  320.  
  321. util.o:    /usr/include/pwd.h
  322.  
  323. util.o:    /usr/include/sys/types.h
  324.  
  325. util.o:    /usr/include/sys/sysmacros.h
  326.  
  327. util.o:    /usr/include/sys/dir.h
  328.  
  329. util.o:    /usr/include/syslog.h
  330.  
  331. util.o:    ./util.h
  332.  
  333.